// JavaScript Document
function formSubmit(formName){
	eval('document.'+ formName + '.submit();');
}

function getFileExtension($file){
	return ($file.substring($file.lastIndexOf('.') + 1)).toLowerCase();
}
function open_popup(url,popup_name,width,height){
	var left = Math.floor((screen.width - width) / 2);
	var top = Math.floor((screen.height - height) / 2);
	window.open(url,popup_name, 'height='+height+', width='+width+', left='+left+',top='+top+',toolbar=no, menubar=no, scrollbars=yes, resizable=yes, location=no, status=no');
}
function redir(url){
	eval("location.href = '" + url + "'");
}
function redirParent(url){
	eval("opener.location.href = '" + url + "'");
	self.close();
}
function check_all(obj, objImage) {
	if (obj) {
		if (obj.length) {
			value = obj[0].checked==false?true:false;
			
			for (i=0;i<obj.length;i++)
				obj[i].checked = value;
		}
		else {
			value = obj.checked==false?true:false;
			obj.checked = value;
		}
		/**/
		if(objImage){
			objImage.src = (value) ? srcImageClearAll : srcImageCheckAll; 
		}
		
	}
}